package com.dao;

import com.pojo.User;
import com.utils.JDBCUtils;

import java.util.List;

public class LoginDao {

    public User QueryUser(String username){
        List<User> selectone = JDBCUtils.selectone(User.class, "select * from user where userName = ?", username);
        if(selectone.size()>0){
            return selectone.get(0);
        }
        return null;
    }
}
